Skip to content

Conversation

@stephanritscher
Copy link
Contributor

As I argued in #7, I think RCT power devices handle timezone information incorrectly when converting between readable dates and timestamps. This PR tries to address this problem.

- `pytz`: the module is deprecated and shouldn't be used any longer
- `datetime.utcfromtimestamp()` is deprecated since Python 3.12, the
  alternative works in 3.11 (our current lower bound)
@svalouch
Copy link
Owner

Hi, sorry for being absent from the project for so long. I really like how robust you've mad it.

I've added a commit to move away from some deprecated modules and functions; some quick checks on machines using UTC and CET show no difference with/without the patch, but I'm not using the script regularly so it would be cool if you could check if it does not break anything for real use-cases.

@svalouch
Copy link
Owner

So, I've unfortunately rushed ahead with changes to the project structure itself and only afterwards realised your PR touches some parts that are no longer there. The rebase isn't too complicated, but it would require a force-push, and I'm not comfortable rewriting your project's history (I doubt it'd let me do it in the first place). So, I'll go ahead and create a merge of a local rebase of this PR instead. If things don't work, my added commit is to blame 😅

One thing I haven't figured out is how to port setup.py's scripts array to pyproject.toml, so for the time being I'll just drop that particular commit.

@stephanritscher
Copy link
Contributor Author

Thanks. I hope to find time to switch to your new version and give you feedback anytime soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants